import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home'
import Info from './views/Info'
Vue.use(Router)
export default new Router({
  // mode: 'history', // require service support
  // scrollBehavior: () => ({ y: 0 }),
  routes: [
    {
      path: '/home',
      component: Home
    },
    {
      path: '/info',
      component: Info
    }
    // { path: '*', redirect: '/login', hidden: true }
  ]
})
